
import request from '@/utils/request'

export function listcheckItem(query) {
  return request({
    url: '/system/checkItem/list',
    method: 'get',
    params: query
  })
}
export function listcheck(query) {
  return request({
    url: '/system/check/list',
    method: 'get',
    params: query
  })
}
export function selectList(query) {
  return request({
    url: '/system/checkItem/listSelect',

    method: 'get',
    params: query
  })
}
export function delcheckItem(compFeeIds) {
  return request({
    url: '/system/checkItem/' + compFeeIds,
    method: 'delete'
  })
}
export function checkItemAdd(data) {
  return request({
    url: '/system/checkItem',
    method: 'post',
    data: data
  })
}
export function updategcheckItem(data) {
  return request({
    url: '/system/checkItem',
    method: 'put',
    data: data
  })
}
export function checkItemInfo(query) {
  return request({
    url: '/system/checkItem/' + query,
    method: 'get',
  })
}
// 启用禁用供应商
export function effectcheckItem(id, effect) {
  console.log('11')
  return request({
    url: '/system/checkItem/effect/' + id + '/' + effect,
    method: 'put',
  })
}